# 重置docker环境
echo "1.正在删除docker所在目录"
rm -rf /etc/docker
rm -rf /run/docker
rm -rf /var/lib/dockershim
rm -rf /var/lib/docker
echo "2.卸载docker相关包"
yum remove -y containerd.io.x86_64
yum remove -y docker*
yum remove -y containerd.io.x86_64
yum remove -y docker-ce.x86_64
yum remove -y docker-ce-cli.x86_64
yum remove -y docker-ce-rootless-extras.x86_64
yum remove -y docker-compose-plugin.x86_64
yum remove -y docker-scan-plugin.x86_64
echo "3.卸载完毕" 